import { Store } from '@tanstack/store';
import { MeRichInfo } from '../apis/me.types';

type MeState = { state: 'loading' } | { state: 'unauthenticated' } | { state: 'authenticated'; me: MeRichInfo };

const meStore = new Store<MeState>({
  state: 'loading',
});

export default meStore;
